package com.sailors.common.task.sdk.core.handle;

import com.sailors.common.task.sdk.core.model.FileTaskCreateDto;
import com.sailors.common.task.sdk.core.model.FileTaskFailedDto;
import com.sailors.common.task.sdk.core.model.RefreshProcessDto;
import org.springframework.web.client.RestTemplate;

import java.util.concurrent.ExecutionException;

public abstract class AbstractCommonTaskHandler implements CommonTaskHandler {
    @Override
    public Long createTask(FileTaskCreateDto fileTaskCreateDto) {
        throw new RuntimeException("no supports");
    }

    @Override
    public void refreshProcess(RefreshProcessDto refreshProcessDto) {
        throw new RuntimeException("no supports");
    }

    @Override
    public void refreshProcessAsync(RefreshProcessDto refreshProcessDto) throws ExecutionException, InterruptedException {
        throw new RuntimeException("no supports");
    }

    @Override
    public void failed(FileTaskFailedDto fileTaskFailedDto) {
        throw new RuntimeException("no supports");
    }

    @Override
    public void failedAsync(FileTaskFailedDto fileTaskFailedDto) throws ExecutionException, InterruptedException {
        throw new RuntimeException("no supports");
    }

    @Override
    public <T> T detail(Long id) {
        throw new RuntimeException("no supports");
    }
}
